/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package xib.parserTools.adaptee;

import org.xml.sax.ErrorHandler;
import org.xml.sax.SAXException;
import org.xml.sax.SAXParseException;

/**
 * 
 * @author Jose Miguel
 */
class SimpleErrorHandler implements ErrorHandler {

    public void warning(SAXParseException exception) throws SAXException {
        throw new SAXException("Invalid format file: " + exception.getMessage());
    }

    public void error(SAXParseException exception) throws SAXException {
        throw new SAXException("Invalid format file: " + exception.getMessage());
    }

    public void fatalError(SAXParseException exception) throws SAXException {
        throw new SAXException("Invalid format file: " + exception.getMessage());
    }

}
